package cn.crap.model;

import cn.crap.framework.base.BaseModel;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Ehsan
 */
@Entity
@Table(name = "role")
@GenericGenerator(name = "Generator", strategy = "cn.crap.framework.IdGenerator")
public class Role extends BaseModel implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String roleName;
    private String auth;
    private String authName;

    @Column(name = "auth")
    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    @Column(name = "authName")
    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    @Column(name = "roleName")
    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

}